package cn.taoticket.client;
import cn.taoticket.pojo.TaoticketItemType;

import cn.taoticket.fallback.TaoticketItemTypeClientFallBack;
import java.util.List;
import java.util.Map;

import cn.taoticket.config.TaoTicketConfiguration;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestBody;
/**
* Created by shang-pc on 2018/5/15.
*/
@FeignClient(name = "taoticket-item-provider", configuration = TaoTicketConfiguration.class, fallback = TaoticketItemTypeClientFallBack.class)
public interface RestTaoticketItemTypeClient {

@RequestMapping(value = "/getTaoticketItemTypeById",method = RequestMethod.POST)
public TaoticketItemType getTaoticketItemTypeById(@RequestParam("id") Long id)throws Exception;

@RequestMapping(value = "/getTaoticketItemTypeListByMap",method = RequestMethod.POST)
public List<TaoticketItemType>	getTaoticketItemTypeListByMap(@RequestParam Map<String,Object> param)throws Exception;

@RequestMapping(value = "/getTaoticketItemTypeCountByMap",method = RequestMethod.POST)
public Integer getTaoticketItemTypeCountByMap(@RequestParam Map<String,Object> param)throws Exception;

@RequestMapping(value = "/qdtxAddTaoticketItemType",method = RequestMethod.POST)
public Integer qdtxAddTaoticketItemType(@RequestBody TaoticketItemType taoticketItemType)throws Exception;

@RequestMapping(value = "/qdtxModifyTaoticketItemType",method = RequestMethod.POST)
public Integer qdtxModifyTaoticketItemType(@RequestBody TaoticketItemType taoticketItemType)throws Exception;
}
